<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Post_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-post_id" data-rule="required" data-source="post/index" class="form-control selectpage" name="row[post_id]" type="text" value="{$row.post_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Salary')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-salary" class="form-control" step="0.01" name="row[salary]" type="number" value="{$row.salary|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if condition="($row.sex == 1) "}
            <input name="row[sex]" type="radio" value="1" checked >男
            <input  name="row[sex]" type="radio" value="0" style='margin-left: 1.5rem;'>女
            {else /}
            <input name="row[sex]" type="radio" value="1" >男
            <input  name="row[sex]" type="radio" value="0" style='margin-left: 1.5rem;' checked >女
            {/if}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Companytime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-companytime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[companytime]" type="text" value="{:$row.companytime?datetime($row.companytime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Place')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-place" class="form-control" name="row[place]" type="text" value="{$row.place|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Education')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if condition="($row.education == 0) "}
                <input name="row[education]" type="radio" value="0" checked >高中
                <input  name="row[education]" type="radio" value="1" style='margin-left: 1.5rem;'>中专
                <input  name="row[education]" type="radio" value="2" style='margin-left: 1.5rem;'>大专
                <input  name="row[education]" type="radio" value="3" style='margin-left: 1.5rem;'>本科
                <input  name="row[education]" type="radio" value="4" style='margin-left: 1.5rem;'>研究生
            {elseif condition="($row.education == 1)"/}
                <input name="row[education]" type="radio" value="0"  >高中
                <input  name="row[education]" type="radio" value="1" style='margin-left: 1.5rem; ' checked>中专
                <input  name="row[education]" type="radio" value="2" style='margin-left: 1.5rem;'>大专
                <input  name="row[education]" type="radio" value="3" style='margin-left: 1.5rem;'>本科
                <input  name="row[education]" type="radio" value="4" style='margin-left: 1.5rem;'>研究生
                {elseif condition="($row.education == 2)"/}
                 <input name="row[education]" type="radio" value="0" checked >高中
                <input  name="row[education]" type="radio" value="1" style='margin-left: 1.5rem;'>中专
                <input  name="row[education]" type="radio" value="2" style='margin-left: 1.5rem;' checked>大专
                <input  name="row[education]" type="radio" value="3" style='margin-left: 1.5rem;'>本科
                <input  name="row[education]" type="radio" value="4" style='margin-left: 1.5rem;'>研究生
            {elseif condition="($row.education == 3)"/}
                 <input name="row[education]" type="radio" value="0" checked >高中
                <input  name="row[education]" type="radio" value="1" style='margin-left: 1.5rem;'>中专
                <input  name="row[education]" type="radio" value="2" style='margin-left: 1.5rem;'>大专
                <input  name="row[education]" type="radio" value="3" style='margin-left: 1.5rem;' checked>本科
                <input  name="row[education]" type="radio" value="4" style='margin-left: 1.5rem;'>研究生
            {else/}
                <input name="row[education]" type="radio" value="0" checked >高中
                <input  name="row[education]" type="radio" value="1" style='margin-left: 1.5rem;'>中专
                <input  name="row[education]" type="radio" value="2" style='margin-left: 1.5rem;'>大专
                <input  name="row[education]" type="radio" value="3" style='margin-left: 1.5rem;'>本科
                <input  name="row[education]" type="radio" value="4" style='margin-left: 1.5rem;' checked>研究生
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Request')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-request" class="form-control" name="row[request]" type="text" value="{$row.request|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Addtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-addtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[addtime]" type="text" value="{:$row.addtime?datetime($row.addtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Audittime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-audittime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[audittime]" type="text" value="{:$row.audittime?datetime($row.audittime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if condition="($row.audit == 0) "}
                <input name="row[audit]" type="radio" value="0" checked >审核中
                <input  name="row[audit]" type="radio" value="1" style='margin-left: 1.5rem;'>已审核
                <input  name="row[audit]" type="radio" value="2" style='margin-left: 1.5rem;'>已拒绝
            {elseif condition="$name eq 2"/}
                <input name="row[audit]" type="radio" value="0"  >审核中
                <input  name="row[audit]" type="radio" value="1" style='margin-left: 1.5rem;' checked>已审核
                <input  name="row[audit]" type="radio" value="2" style='margin-left: 1.5rem;'>已拒绝
            {else /}
                <input name="row[audit]" type="radio" value="0"  >审核中
                <input  name="row[audit]" type="radio" value="1" style='margin-left: 1.5rem;'>已审核
                <input  name="row[audit]" type="radio" value="1" style='margin-left: 1.5rem;' checked>已拒绝
            {/if}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
